package com.rent.writeoff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rent.writeoff.entity.RentPlan;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface RentPlanMapper extends BaseMapper<RentPlan> {

    /**
     * 按承租人查询未核销/部分核销的租金计划（加锁）
     */
    List<RentPlan> selectUnwrittenOffByLesseeForUpdate(@Param("lesseeName") String lesseeName);
}
